﻿using System;
using System.Data;

namespace DatabaseService.DatabaseService
{
    public class Charset50Entity : BaseCharset
    {
        public override string getFromDatabase(string strSource)
        {
            return (System.Text.Encoding.GetEncoding(936).GetString(System.Text.Encoding.GetEncoding(850).GetBytes(strSource)));//sybase 5.0汉字编码转换
        }

        public override string insertToDatabase(string strSource)
        {
            return (System.Text.Encoding.GetEncoding(850).GetString(System.Text.Encoding.GetEncoding(936).GetBytes(strSource)));//sybase 5.0汉字编码转换
        }
    }
}
